//
//  MessageDetailViewController.m
//  test1
//
//  Created by 衣尚品1 on 15/5/5.
//  Copyright (c) 2015年 衣尚品1. All rights reserved.
//

#import "MessageDetailViewController.h"

@interface MessageDetailViewController ()

@end

@implementation MessageDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.messageText.delegate = self;
//    [self.inputView.layer setBorderWidth:1.0f];
    self.inputView.layer.borderWidth = 1;
    self.inputView.layer.borderColor = [[UIColor colorWithRed:210/255 green:210/255 blue:210/255 alpha:0.1] CGColor];
//    self.aalabel.text = @"asfdohkasdflkhaerg;j;asfkhjwq;lkaefhdo;shn";

}


- (void)textFieldDidBeginEditing:(UITextField *)textField{
    self.viewY.constant = -202;
    [UIView animateWithDuration:0.23 animations:^{
        [self.moveView layoutIfNeeded];
    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (IBAction)hideKeyboard:(id)sender {
    [self.view endEditing:YES];
    self.viewY.constant = 0;
    [UIView animateWithDuration:0.23 animations:^{
        [self.moveView layoutIfNeeded];
    }];
}
@end
